﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="MatchSummary.aspx.cs" Inherits="SoccerEvaluator.WebSite.MatchSummary" %>


<asp:Content runat="server" ContentPlaceHolderID="PageHeader" ID="header">
    <link href="css/Match.css" rel="stylesheet" />
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <h2>
        <%= Resources.Resource.Summary %>      
        
        <%=_groupName %>
    </h2>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table>
        <tr>
            <td>
                <div class="MatchMenu">
                    <a href="GroupList.aspx">Inicio                        
                    </a><a href="MatchList.aspx?ID=<%=_groupID %>">
                        Volver                    
                    </a>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Panel runat="server" ID="pnlData" CssClass="ScoreLine" Width="600px">
                    <%=Resources.Resource.Users %> :
                    <asp:Label runat="server" ID="lblTotalUsers"></asp:Label>
                </asp:Panel>
            </td>

        </tr>
        <tr>
            <td>
                <asp:GridView ID="lstUsers" runat="server" AutoGenerateColumns="False"
                    AllowSorting="True" CssClass="ScoreLine" Width="100%" CellPadding="4" ForeColor="#333333" GridLines="None" DataSourceID="ObjectDataSource1">
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:BoundField DataField="Username" HeaderText="Username"
                            ItemStyle-HorizontalAlign="Center" SortExpression="Username">
                        </asp:BoundField>
                        <asp:BoundField DataField="Name" HeaderText="Name"
                            ItemStyle-HorizontalAlign="Center" SortExpression="Name">
                        </asp:BoundField>
                        <asp:BoundField DataField="Total" HeaderText="Total" SortExpression="Total" />
                    </Columns>
                    <EditRowStyle BackColor="#7C6F57" />
                    <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#E3EAEB" />
                    <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#F8FAFA" />
                    <SortedAscendingHeaderStyle BackColor="#246B61" />
                    <SortedDescendingCellStyle BackColor="#D4DFE1" />
                    <SortedDescendingHeaderStyle BackColor="#15524A" />
                </asp:GridView>

            </td>
        </tr>        
    </table>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="ListUserSummary" TypeName="SoccerEvaluator.WebSite.App_Code.SoccerEvaluatorDataSource">
        <SelectParameters>
            <asp:SessionParameter DefaultValue="0" Name="groupID" SessionField="GroupId" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
</asp:Content>
